package com.xrui.hbasecmd.format;

/**
 * A formatter interface to be used to format values into a {@link String}.
 */
public interface Formatter {

    /**
     * Converts a row to a {@link String} representation using specific formatting.
     *
     * @param value A value to append to a formatted string.
     */
    void append(Object value);

    /**
     * Gets a formatted string when all the relevant values were appended.
     *
     * @return A formatted string.
     */
    String getFormattedString();
}
